function getLength<T>(arg:T):number{
    // @ts-ignore
    let num = arg.length
    console.log(num)
    return num
}
getLength<string>("1234")
getLength<number[]>([1,2,3,4])
getLength<{[name:string]:number,length:number}>({a:1,length:1})